<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf8">
    <title>Please, login</title>
    <script type="text/javascript" src="/voteup/resources/js/jquery-1.6.1.js"></script>
    <script type="text/javascript" src="/voteup/resources/js/stylescript.js"></script>
</head>
<body>
<center>
    <c:import url="/WEB-INF/jsp/header.jsp"/>
    <h4>Please, Log in</h4>
    <c:if test="${not empty param.login_error}">
        <font color="red"> Incorrect email or password
        </font>

    </c:if>

    <p/>

    <form method="POST" action="<c:url value="/j_spring_security_check"/>">
        <table>
            <tr>
                <td align="right"><c:out value="Email"/></td>
                <td><input type="text" class="inputtext" name="j_username"
                           value="<c:if test="${not empty param.login_error}">${SPRING_SECURITY_LAST_USERNAME}</c:if>"/>
                </td>
            </tr>
            <tr>
                <td align="right"><c:out value="Password"/></td>
                <td><input type="password" class="inputtext" name="j_password" value=""/></td>
            </tr>
            <tr>
                <td colspan="2" align="right"><input type="submit" class="inputbutton" value="Login"/>
            </tr>
        </table>
    </form>
    <a href="/voteup/registerform">Registration</a>
</center>

</body>
</html>